From 05cbb645e112d9a480084f9035c745b832a93d0a Mon Sep 17 00:00:00 2001 From: sijanec Date: Mon, 7 Dec 2020 17:45:49 +0100 Subject: advent 4 fix, remove debug --- mat/advent/4/a.out | Bin 8432 -> 8432 bytes mat/advent/4/prog.c | 4 +--- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/mat/advent/4/a.out b/mat/advent/4/a.out index ad1aa04..c1c724c 100755 Binary files a/mat/advent/4/a.out and b/mat/advent/4/a.out differ diff --git a/mat/advent/4/prog.c b/mat/advent/4/prog.c index 87dfa5e..a50524f 100644 --- a/mat/advent/4/prog.c +++ b/mat/advent/4/prog.c @@ -9,10 +9,8 @@ int main (int argc, char ** argv) { unsigned long int x = 1; unsigned long int y = 1; unsigned long int s = 0; - for (x = 1; x <= n; x++) { - fprintf(stderr, "debug: x == %lu\n", x); + for (x = 1; x <= n; x++) for (y = 1; y <= n; y++) s = s + x * y; - } fprintf(stdout, "seštevek možnih pravokotnikov v mreži %lux%lu je %lu\n", n, n, s); } -- cgit v1.2.3